<?php

namespace App\Services;

use Illuminate\Support\Facades\Mail;

class TestService  
{
    public function test()
    {
        return 'service';
    }

    public function sendemail($data){

	    	$flag = Mail::send('errors.404',['name'=>'test1'],function($message){
            $to = '511652942@qq.com';
            $message ->to($to)->subject('测试邮件');
        });
	   	//纯文本
	    /* Mail::raw('这是一封测试邮件', function ($message) {
		    $to = '511652942@qq.com';
		    $message ->to($to)->subject('测试邮件');
		});*/
    }
}
